//
// Created by xili on 2024/8/7 20:47.
// Go big or go home.
//
#include <vector>
#include <unordered_set>

using namespace std;

class Solution {
public:
    int minimumOperations(vector<int> &nums) {
        unordered_set<int> s(nums.begin(), nums.end());
        return s.size() - s.count(0);
    }
};